Matthias Clasen [Sat, 25 Nov 2017 01:42:09 +0000 (20:42 -0500)]
wayland: Stop emitting devicemanager signals
Nobody is listening to these signals anymore.
Matthias Clasen [Sat, 25 Nov 2017 01:38:47 +0000 (20:38 -0500)]
x11: Stop emitting devicemanager signals
Nobody is listening to these anymore, so there
is no point in emitting them.
Matthias Clasen [Fri, 24 Nov 2017 17:19:35 +0000 (12:19 -0500)]
display: Drop the device_manager for good
This is now entirely the backends responsibility.
Matthias Clasen [Fri, 24 Nov 2017 17:25:49 +0000 (12:25 -0500)]
wayland: Stop using display->device_manager
We can keep the device manager in the backend.
Matthias Clasen [Fri, 24 Nov 2017 17:03:36 +0000 (12:03 -0500)]
quartz: Stop using display->device_manager
We can keep the device manager in the backend.
Matthias Clasen [Fri, 24 Nov 2017 16:56:42 +0000 (11:56 -0500)]
win32: Stop using gdk_display_get_device_manager
We can keep the devicemanager in the backend.
Matthias Clasen [Fri, 24 Nov 2017 14:14:17 +0000 (09:14 -0500)]
x11: Stop using gdk_display_get_device_manager
We can keep the displaymanager in the backend.
Matthias Clasen [Fri, 24 Nov 2017 03:20:50 +0000 (22:20 -0500)]
broadway: Remove devicemanager implementation
It is not used and not needed anymore.
Matthias Clasen [Fri, 24 Nov 2017 03:17:30 +0000 (22:17 -0500)]
broadway: Stop using GdkDeviceManager
We can use the GdkSeat apis for this.
Matthias Clasen [Fri, 24 Nov 2017 16:31:18 +0000 (11:31 -0500)]
display: Stop using devicemanager internally
We can just use the seats to find out about device removals.
Matthias Clasen [Thu, 23 Nov 2017 21:28:00 +0000 (16:28 -0500)]
Drop GdkDeviceManager APIs
No longer used outside of the backends.
Matthias Clasen [Thu, 23 Nov 2017 21:23:41 +0000 (16:23 -0500)]
Don't mention GdkDeviceManager in docs
It is going away.
Matthias Clasen [Thu, 23 Nov 2017 21:21:37 +0000 (16:21 -0500)]
Drop support for setting event masks for floating devices
These are very rarely needed, and are X11-specific.
If it turns out that somebody needs this, it can come
back as X11-specific functionality.
Matthias Clasen [Thu, 23 Nov 2017 21:11:48 +0000 (16:11 -0500)]
gdk: Move gdk_disable_multidevice tot he X11 backend
This api only ever did something for X11, so move
it there. Update the docs and adapt the only caller.
Matthias Clasen [Thu, 23 Nov 2017 20:43:52 +0000 (15:43 -0500)]
Drop gdk_display_get_device_manager API
GdkDeviceManager is being replaced by GdkSeat.
Matthias Clasen [Thu, 23 Nov 2017 20:40:12 +0000 (15:40 -0500)]
treeview: Don't use GdkDeviceManager
We can just as well use GdkSeat to enumerate (attached)
devices. Note that this change excludes floating devices
from consideration.
This keeps the copy-pasted code in sync with gtkwindow.c
Matthias Clasen [Thu, 23 Nov 2017 20:39:19 +0000 (15:39 -0500)]
window: Don't use GdkDeviceManager
We can just as well use GdkSeat to enumerate (attached)
devices. Note that this change excludes floating devices
from consideration.
Matthias Clasen [Thu, 23 Nov 2017 20:25:13 +0000 (15:25 -0500)]
widget: Don't use GdkDeviceManager
We can just as well use GdkSeat to enumerate the devices.
Matthias Clasen [Sat, 25 Nov 2017 16:01:38 +0000 (11:01 -0500)]
Fix the build
A stray GdkScreen leftover.
Matthias Clasen [Sat, 25 Nov 2017 13:37:49 +0000 (08:37 -0500)]
gdk: Remove a leftover GdkScreen
Matthias Clasen [Fri, 24 Nov 2017 13:51:22 +0000 (08:51 -0500)]
gsk: Quiet a compiler warning
We insist on handling all cases in a switch, nowadays.
Daniel Boles [Thu, 23 Nov 2017 17:21:36 +0000 (17:21 +0000)]
Entry:show-emoji-icon is in GTK+ 3 too
Document the earliest version reached.
Daniel Boles [Thu, 23 Nov 2017 17:17:08 +0000 (17:17 +0000)]
Be more specific in ::insert-emoji Since tag
I had been unsure whether to include the minor version, but
:show-emoji-icon already did, so do the same here to match.
Alexander Larsson [Thu, 23 Nov 2017 09:45:27 +0000 (10:45 +0100)]
broadway: Disable fallback spew by default
Alexander Larsson [Thu, 23 Nov 2017 09:22:23 +0000 (10:22 +0100)]
broadway: Roundtrip each update to rate limit redraw
Alexander Larsson [Wed, 22 Nov 2017 22:42:29 +0000 (23:42 +0100)]
broadway: Handle cairo nodes
This means we can directly upload these as textures, rather than
create a new surface and draw it into that. We still have to upload,
but there isn't a lot we can do about this as for these nodes
we generally redraw everything each time.
Alexander Larsson [Wed, 22 Nov 2017 17:24:20 +0000 (18:24 +0100)]
broadway: Handle texture gsd nodes
Alexander Larsson [Wed, 22 Nov 2017 16:40:39 +0000 (17:40 +0100)]
broadway: Add clip node
Alexander Larsson [Wed, 22 Nov 2017 16:29:43 +0000 (17:29 +0100)]
broadway: Don't log cache hits
Alexander Larsson [Wed, 22 Nov 2017 16:28:53 +0000 (17:28 +0100)]
broadway: Cache color translated textures
These happen a lot due to the recolored symbolics
Alexander Larsson [Wed, 22 Nov 2017 16:28:44 +0000 (17:28 +0100)]
broadway: Add opacity node
Alexander Larsson [Wed, 22 Nov 2017 15:53:15 +0000 (16:53 +0100)]
broadway: Add shadow node
Alexander Larsson [Wed, 22 Nov 2017 14:39:09 +0000 (15:39 +0100)]
broadway: Add node cache for text
Alexander Larsson [Wed, 22 Nov 2017 11:37:39 +0000 (12:37 +0100)]
broadway: Remove inflate code
This is not used anymore
Alexander Larsson [Wed, 22 Nov 2017 11:31:36 +0000 (12:31 +0100)]
broadway: Add linear gradient node
Alexander Larsson [Wed, 22 Nov 2017 09:32:47 +0000 (10:32 +0100)]
broadway: Add RoundedClip node
Alexander Larsson [Wed, 22 Nov 2017 08:59:22 +0000 (09:59 +0100)]
broadway: Add inset shadow
Alexander Larsson [Wed, 22 Nov 2017 08:47:47 +0000 (09:47 +0100)]
broadway: Add outset shadow node
Alexander Larsson [Wed, 22 Nov 2017 07:48:41 +0000 (08:48 +0100)]
broadway: Fix border node positioning
Alexander Larsson [Tue, 21 Nov 2017 22:01:00 +0000 (23:01 +0100)]
broadway: Add border node
Alexander Larsson [Tue, 21 Nov 2017 21:58:31 +0000 (22:58 +0100)]
broadway: Clean up node parser
Alexander Larsson [Tue, 21 Nov 2017 20:56:06 +0000 (21:56 +0100)]
broadway: Add color nodes
Alexander Larsson [Tue, 21 Nov 2017 20:22:04 +0000 (21:22 +0100)]
broadway: Fix input events
Alexander Larsson [Tue, 21 Nov 2017 19:28:56 +0000 (20:28 +0100)]
broadway: Don't swap node trees until all images are loaded
Alexander Larsson [Tue, 21 Nov 2017 19:01:57 +0000 (20:01 +0100)]
broadway: Rewrite textures in nodes to global
Alexander Larsson [Tue, 21 Nov 2017 18:49:29 +0000 (19:49 +0100)]
broadway: Remove remaining unused window_update code
Alexander Larsson [Tue, 21 Nov 2017 18:33:12 +0000 (19:33 +0100)]
broadway: Initial version of using actual render nodes
Alexander Larsson [Sat, 18 Nov 2017 19:36:57 +0000 (20:36 +0100)]
broadway: Use textures to configure window contents
Instead of using the old buffer code, just use textures to define the
window contents.
Alexander Larsson [Sat, 18 Nov 2017 16:36:38 +0000 (17:36 +0100)]
broadway: Actually upload textures to client
Alexander Larsson [Sat, 18 Nov 2017 15:47:43 +0000 (16:47 +0100)]
broadway: Introduce global ids for the textures
Alexander Larsson [Fri, 17 Nov 2017 15:40:06 +0000 (16:40 +0100)]
broadway: Add support for uploading textures to daemon
Alexander Larsson [Fri, 17 Nov 2017 14:57:28 +0000 (15:57 +0100)]
broadway: Support fd passing in protocol
This will be used to pass buffers
Alexander Larsson [Fri, 17 Nov 2017 14:22:06 +0000 (15:22 +0100)]
broadwayd: Read using socket API
This changes nothing, but it allows us to later recieve
unix messages and thus fd passing
Alexander Larsson [Fri, 17 Nov 2017 13:16:01 +0000 (14:16 +0100)]
broadway: Only support (non-abstract) sockets
We want to use fd passing, so drop tcp
Alexander Larsson [Fri, 17 Nov 2017 11:04:02 +0000 (12:04 +0100)]
broadway: Add GskBroadwayRenderer
This is a custom renderer for broadway windows, although at the
moment it doesn't really do anything other than the old cairo
fallbacks.
Daniel Boles [Wed, 22 Nov 2017 22:35:25 +0000 (22:35 +0000)]
Add Since to ::insert-emoji, and some trivialities
Document when these keybinding signals were added.
Matthias Clasen [Wed, 22 Nov 2017 21:47:43 +0000 (16:47 -0500)]
text view: Support the Emoji chooser
Similar to GtkEntry, add an "Insert Emoji" context
menu item, and add the same keybindings. We don't
add the icon here, since it is not clear where it
would go.
https://bugzilla.gnome.org/show_bug.cgi?id=790029
Matthias Clasen [Wed, 22 Nov 2017 21:46:49 +0000 (16:46 -0500)]
Fix indentation mishap
Daniel Boles [Wed, 22 Nov 2017 20:27:26 +0000 (20:27 +0000)]
SpinButton: Explain meaning of nullable Adjustment
configure() marked the @adj argument as (allow-none) but did not explain
what passing NULL would do. Fix that, and move it to (nullable) as well.
Daniel Boles [Wed, 22 Nov 2017 19:19:27 +0000 (19:19 +0000)]
doc: Replace uses of #NULL with %NULL
Daniel Boles [Wed, 22 Nov 2017 18:57:48 +0000 (18:57 +0000)]
CellRendererPixbuf: Link stock-size doc → IconSize
Add a doc comment for :stock-size in order to link to GtkIconSize.
Daniel Boles [Tue, 21 Nov 2017 10:52:35 +0000 (10:52 +0000)]
doc: TextLayout: Add missing (out) annotations
and move from (allow-none) to (optional)
Bastien Nocera [Wed, 22 Nov 2017 14:23:52 +0000 (15:23 +0100)]
frame-clock: Fix typo in API documentation
Chun-wei Fan [Fri, 17 Nov 2017 07:27:10 +0000 (15:27 +0800)]
GDK/Win32: Fix build after GDK Root Window and DND changes
Ensure that things build again, and instead use the Windows API to
acquire the screen dimensions (note: this may need to be scaled for
HiDPI, but since I do not own a WinTab-based device, I will need to
keep the dimensions as-is for now).
Also update the gdkdnd-win32.c code to use formats rather than targets.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Chun-wei Fan [Mon, 20 Nov 2017 07:05:28 +0000 (15:05 +0800)]
gtk/gskpango.c: Use g_snprintf()
This fixes the build of GTK+ master on Visual Studio 2013 (and possibly
others) as snprintf() may not be supported even if the required C99
features are supported by the compiler.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Chun-wei Fan [Mon, 20 Nov 2017 05:05:18 +0000 (13:05 +0800)]
gtk/gtkseclection.c: Don't build X11 items unconditionally
Limit building the X11 items only when GDK_WINDOWING_X11 is defined.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Chun-wei Fan [Fri, 17 Nov 2017 07:30:20 +0000 (15:30 +0800)]
gtkimcontextime.c: Fix call to gtk_style_context_get()
The state argument was removed in commit
1518fe0 (API: stylecontext:
Remove state argument from getters), but we missed updating this file
until commit
5b94fe6 (stylecontext: Make first property name explicit),
as the compiler did not issue any warnings on the (now-defunct) usage.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Benjamin Otte [Mon, 20 Nov 2017 14:58:17 +0000 (15:58 +0100)]
gdk: Add GType support to GdkContentFormats
This is not used by anything yet, but add it now, so people looking at
this new code can make sense of it.
Plus, the documentation mentions it, so better have the docs make sense.
It will be used once we add support for conversions to GDK and allow
doing cipboard/dnd by GValue.
Benjamin Otte [Mon, 20 Nov 2017 03:42:43 +0000 (04:42 +0100)]
gdk: Sanitize GdkContentFormats API
Make sure the API reflects the idea that GdkContentFormats is a set
containing mime types. In particular, treat the object itself as a
plural - it's named content format`S' after all - and therefor use
the correct verb form.
Also make GdkContentFormats keep an array instead of a list, now that
it's immutable.
Benjamin Otte [Mon, 20 Nov 2017 02:54:42 +0000 (03:54 +0100)]
gdk: Make GdkContentFormats immutable
Benjamin Otte [Mon, 20 Nov 2017 01:47:45 +0000 (02:47 +0100)]
gdk: Add GdkContentFormatsBuilder
Yes, the name is too long.
No, I couldn't think of a shorter one.
Benjamin Otte [Sat, 18 Nov 2017 04:53:25 +0000 (05:53 +0100)]
gdkdnd: Make GdkDragContext->formats a GdkContentFormats
Instead of it being a GList of GdkAtoms.
Benjamin Otte [Sat, 18 Nov 2017 01:19:53 +0000 (02:19 +0100)]
contentformats: Rename GtkTargetList
It's now called GdkContentsFormat
Benjamin Otte [Fri, 17 Nov 2017 16:31:59 +0000 (17:31 +0100)]
gdk: Move GtkTargetList to GDK
It's gonna be renamed next, so put it in the right source file already.
For now retain the old name to keep the diff small.
Benjamin Otte [Fri, 17 Nov 2017 13:26:16 +0000 (14:26 +0100)]
selection: Make GtkTargetList members private
Outside of the target list, don't access it directly, instead use public
APIs like the newly introduced gtk_target_list_intersects().
Benjamin Otte [Thu, 16 Nov 2017 23:28:53 +0000 (00:28 +0100)]
dnd: Remove GtkTargetEntry and GtkTargetFlags
warning: We don't do any same-app checks anymore so you currently can
copy local data into external apps.
This will be fixed later.
Matthias Clasen [Mon, 20 Nov 2017 03:40:07 +0000 (22:40 -0500)]
emoji chooser: break out a helper function
This is just a small cleanup.
Matthias Clasen [Mon, 20 Nov 2017 03:38:07 +0000 (22:38 -0500)]
remove debug spew
Piotr Drąg [Sun, 19 Nov 2017 23:14:14 +0000 (00:14 +0100)]
Update POTFILES.in
Matthias Clasen [Sun, 19 Nov 2017 03:44:12 +0000 (22:44 -0500)]
entry: Add a key binding for the emoji chooser
Make Ctrl-. and Ctrl-; bring up the emoji chooser.
https://bugzilla.gnome.org/show_bug.cgi?id=789160
Matthias Clasen [Sun, 19 Nov 2017 23:03:07 +0000 (18:03 -0500)]
emoji chooser: Make menu key work as expected
Whenever we have a right-click action, we should make
the menu key work as a keyboard-accessible alternative.
Matthias Clasen [Sun, 19 Nov 2017 21:38:28 +0000 (16:38 -0500)]
Adwaita: Bring fix focus in flowbox
Bring back the focus rectangle for flowbox children.
Its absence makes keynav in flowboxes really difficult.
Matthias Clasen [Sun, 19 Nov 2017 21:18:28 +0000 (16:18 -0500)]
emoji chooser: handle right-click
Whereever we handle long-press for touch, it makes sense to handle
right-click as a faster alternative for mouse-based interaction.
This commit makes right-click work to bring up the variation
selector for Emojis.
Matthias Clasen [Sun, 19 Nov 2017 19:47:24 +0000 (14:47 -0500)]
listbox: Listen to ::stopped on the press gesture
Otherwise, we end up interpreting grab notify's as
button releases, which is not right. This matches
what GtkFlowBox does.
Matthias Clasen [Sun, 19 Nov 2017 13:29:37 +0000 (08:29 -0500)]
Trivial cleanup
Better to use G_SOURCE_REMOVE than FALSE, for clarity.
Matthias Clasen [Sun, 19 Nov 2017 13:28:35 +0000 (08:28 -0500)]
emoji chooser: Don't leak gestures
We were not freeing these gestures as we should.
Matthias Clasen [Sat, 18 Nov 2017 13:18:11 +0000 (08:18 -0500)]
Some more interning
This avoids more strdups at startup.
Matthias Clasen [Sat, 18 Nov 2017 04:25:45 +0000 (23:25 -0500)]
a11y: Intern a string
Matthias Clasen [Sat, 18 Nov 2017 04:25:07 +0000 (23:25 -0500)]
cell area: Use GTK_PARAM_READWRITE consistently
Matthias Clasen [Sat, 18 Nov 2017 04:22:02 +0000 (23:22 -0500)]
wayland: Intern signal names
Matthias Clasen [Sat, 18 Nov 2017 04:21:24 +0000 (23:21 -0500)]
icon helper: Avoid a few string copies
Matthias Clasen [Sat, 18 Nov 2017 03:56:25 +0000 (22:56 -0500)]
styleproperty: Use G_PARAM_STATIC_STRINGS
Matthias Clasen [Sat, 18 Nov 2017 03:49:57 +0000 (22:49 -0500)]
gtk: Intern css names
This avoids a bunch of strdups at startup.
Matthias Clasen [Sat, 18 Nov 2017 03:47:49 +0000 (22:47 -0500)]
wayland: Intern settings keys
Matthias Clasen [Sat, 18 Nov 2017 03:47:11 +0000 (22:47 -0500)]
gdk: Intern signal names
We were forgetting this in a few places.
Matthias Clasen [Sat, 18 Nov 2017 02:38:08 +0000 (21:38 -0500)]
gdk: Use G_PARAM_SPEC_STATIC_STRINGS throughout
This avoids some string copies at startup.
Matthias Clasen [Fri, 17 Nov 2017 22:56:03 +0000 (17:56 -0500)]
settings: Use gdk_display_set_cursor_theme
This allows us to reduce the amount of ifdef ugliness.
Matthias Clasen [Fri, 17 Nov 2017 22:42:12 +0000 (17:42 -0500)]
Add private api for setting cursor theme
This is implemented in multiple gdk backends,
and we can avoid and ugly ifdef cascade in gtk
by adding a vfunc for this.
Matthias Clasen [Fri, 17 Nov 2017 21:34:04 +0000 (16:34 -0500)]
Include gdk-private.h
This gives us access to private gdk api.
Matthias Clasen [Fri, 17 Nov 2017 21:22:21 +0000 (16:22 -0500)]
gdk: Move code around
Move the gdk_display functions to gdkdisplay.c.
They are misplaced in gdkevents.c.